///<reference path="F:\Code\Projects\Jungschi\Website\Scripts\knockout\knockout.d.ts" />
// Interface
interface IPoint {
    getDist(): number;
}

// Module
module Shapes {

    // Class
    export class Point implements IPoint {
        // Constructor
        constructor(public x: number, public y: number) { }

        // Instance member
        getDist() { return Math.sqrt(this.x * this.x + this.y * this.y); }

        // Static member
        static origin = new Point(0, 0);
    }

}
//#region Generated Code
/**
* This code has been generated by a tool. Do not modify it
*/

module SPATest.Models{ 
	export interface ITodoItemDto{
		TodoItemId : number;
		Title : string;
		IsDone : bool;
		TodoListId : number;
	}
}

module System.Net.Http{ 
	export interface IHttpResponseMessage{
		Version : any;
		Content : any;
		StatusCode : any;
		ReasonPhrase : string;
		Headers : any;
		RequestMessage : any;
		IsSuccessStatusCode : bool;
	}
}

module Hans.peter{ 
	export class TodoListTestName {
		TodoListId : KnockoutObservableNumber = ko.observable(0);
		UserId : KnockoutObservableString = ko.observable(null);
		Title : KnockoutObservableString = ko.observable(null);
		Todos : KnockoutObservableAny = ko.observable(null);
		constructor(data: any){
			this.TodoListId = ko.observable(data.TodoListId);
			this.UserId = ko.observable(data.UserId);
			this.Title = ko.observable(data.Title);
			this.Todos = ko.observable(data.Todos);}
	}
	export interface IImageData{
	}
	export class TodoController {
		PutTodoItem(id: number, todoItemDto: SPATest.Models.ITodoItemDto, callback: (result: System.Net.Http.IHttpResponseMessage)=>any){			
			return null;
		}
		PostTodoItem(todoItemDto: SPATest.Models.ITodoItemDto, callback: (result: System.Net.Http.IHttpResponseMessage)=>any){			
			return null;
		}
		DeleteTodoItem(id: number, callback: (result: System.Net.Http.IHttpResponseMessage)=>any){			
            return null;
		}
	}
}
//#endregion

// Local variables
var p: IPoint = new Shapes.Point(3, 4);
var dist = p.getDist();

